obj-m := csdn_sysfs.o

KERNELDIR ?= /usr/src/linux-headers-4.15.0-47-generic

PWD := $(shell pwd)

TEMP_OBJ=*.o .*.cmd *.mod.c *.order .cache.mk .tmp_versions *.symvers

modules:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
	rm -rf $(TEMP_OBJ)

clean:
	rm -rf *.ko
